From 766445635522061166487e5b20db9844a1876bb4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 30 Jun 2010 18:11:42 +0100 Subject: [PATCH] Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types since we do not really want to force a PoD allocation as a side effect. Signed-off-by: Paul Durrant --- xen/arch/x86/mm/p2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 717921bc46..36728c6192 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -2557,7 +2557,7 @@ p2m_type_t p2m_change_type(struct domain *d, unsigned long gfn, p2m_lock(d->arch.p2m); - mfn = gfn_to_mfn(d, gfn, &pt); + mfn = gfn_to_mfn_query(d, gfn, &pt); if ( pt == ot ) set_p2m_entry(d, gfn, mfn, 0, nt); -- 2.30.2